package com.beiing.tianshuai.tianshuai.dongtai.view;

import com.beiing.tianshuai.tianshuai.entity.DynamicAddRelayCommentBean;
import com.beiing.tianshuai.tianshuai.entity.DynamicAddReplyBean;
import com.beiing.tianshuai.tianshuai.entity.DynamicBean;
import com.beiing.tianshuai.tianshuai.entity.DynamicCommentAndReplyBean;
import com.beiing.tianshuai.tianshuai.entity.DynamicCommentBean;
import com.beiing.tianshuai.tianshuai.entity.FollowBean;

public interface DynamicViewImpl{

    /**
     * 获取动态列表
     * @param dynamicBean
     */
    void showDynamicList(DynamicBean dynamicBean);

    /**
     * 获取动态列表（下拉刷新）
     * @param dynamicBean
     */
    void refreshDynamicList(DynamicBean dynamicBean);

    /**
     * 更新动态变动  屏蔽/删除
     *
     * @param position
     */
    void updateDynamic(int position);

    /**
     * 显示错误
     */
    void showError(int errorType);

    /**
     * 显示加载对话框
     */
    void showProgress();

    /**
     * 取消加载对话框
     */
    void hideProgress();

    //原创动态的评论
    void showCommentResult(DynamicCommentBean dynamicCommentBean, String time, int position, DynamicBean.DataBean.DynamicsBean dynamicBean);

    //转发动态的评论
    void showRelayCommentResult(DynamicAddRelayCommentBean relayCommentBean, String content, String rid, int position, DynamicBean.DataBean.DynamicsBean dynamicBean);

    //添加回复
    void showAddReplyResult(DynamicCommentAndReplyBean dynamicCommentAndReplyBean, int dynamicPosition, DynamicBean.DataBean.DynamicsBean dynamicBean, DynamicAddReplyBean bean, String content, String did, int position);

    //转发动态的回复
    void showAddRelayReplyResult(DynamicCommentAndReplyBean dynamicCommentAndReplyBean, int dynamicPosition, DynamicBean.DataBean.DynamicsBean dynamicBean, DynamicAddReplyBean bean, String content, String rid, int position);

    void requestError(int type);

    void showCenterMenu(FollowBean followBean, DynamicBean.DataBean.DynamicsBean bean, int position);
}
